<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>

		<script>
			//1.while
			var i = 0
			while (i < 5) {
				document.write("<h3>Hello World</h3>")
				i++
			}

			//2.do-while
			var j = 0
			do {
				document.write("<h3>Hello World</h3>")
				j++
			} while (j < 5)

			//3.for语句
			for (var k = 0;k<5;k++) {
				document.write("<h3 style='color:green'>for语句</h3>"
				}
		</script>
		
		<h1> 乘法口诀表 </h1>
		<script>
			document.write("<pre>");
			for (var i = 1; i <= 9; i++) {
				for (var j = 1; j <= i; j++) {
					document.write(j + "*" + i + "=" + (i * j) + "\t");
				}
				document.write("\n");
			}
			document.write("</pre>");
		</script>





	</body>
</html>
